//
//  SHESelectTypeView.m
//  SHEPuzzleFigure
//
//  Created by xuss on 2019/11/26.
//  Copyright © 2019 Figure. All rights reserved.
//

#import "SHESelectTypeView.h"


@implementation SHESelectTypeView

+(instancetype)initWithXib:(CGRect)frame{
    SHESelectTypeView *view = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:self options:nil].lastObject;
    view.frame = frame;
    [view awakeFromNib];
    return view;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
        
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    
}
- (IBAction)simpleAction:(id)sender {
    if (_SelectBlock!=nil) {
        _SelectBlock(3);
    }
    [self removeFromSuperview];
}

- (IBAction)normalAction:(id)sender {
    if (_SelectBlock!=nil) {
        _SelectBlock(4);
    }
    [self removeFromSuperview];
}

- (IBAction)difficultyAction:(id)sender {
    if (_SelectBlock!=nil) {
        _SelectBlock(5);
    }
    [self removeFromSuperview];
}

@end
